-- GENERATED SPELL FOR [Illidari Centurion] --


function spell0_23337(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15284,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23337', 557, 1)
end

function spell1_23337(pUnit, Event) --@Sonic Strike,Self--
pUnit:FullCastSpellOnTarget(41168,pUnit)
pUnit:RegisterEvent('Sorts_23337', 5304, 1)
end

function Sorts_23337(pUnit, Event)
local choix_sorts_23337 = math.random(0, 1)
if choix_sorts_23337 == 0 then
pUnit:RegisterEvent('spell0_23337', 1, 1)
end
if choix_sorts_23337 == 1 then
pUnit:RegisterEvent('spell1_23337', 1, 1)
end
end

function mob23337_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23337', math.random(1500, 3000), 1)
end

function mob23337_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23337_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23337_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23337, 1, 'mob23337_Action')
RegisterUnitEvent(23337, 2, 'mob23337_Leave')
RegisterUnitEvent(23337, 3, 'mob23337_Kill')
RegisterUnitEvent(23337, 4, 'mob23337_Die')
